<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html charset="UTF-8">
<head>
    <meta charset="utf-8">
    <link href="/Template/pc/default2/Static/css/Style.css" rel="stylesheet" type="text/css">
    <link rel="shortcut icon" href="<?php echo ($tpshop_config['shop_info_store_ico']); ?>"/>
    <link rel="stylesheet" href="/Template/pc/default2/Static/css/index.css" type="text/css"> 
    <script type="text/javascript" src="/Public/js/jquery-1.8.3.min.js"></script>
    <script src="/Public/js/jquery-1.10.2.min.js"></script>
    <script src="/Template/pc/default2/Static/js/slider.js"></script>
    <title><?php echo ($tpshop_config["shop_info_store_title"]); ?></title>
    <!--菜单样式-->

 <!--引入 js css img 文件-->
</head>
<body>
    <!--导航  start //-->
<!DOCTYPE html>
<html charset="UTF-8">
    <head>
        <meta charset="utf-8">
        <link href="/Template/pc/default2/Static/css/style.css" rel="stylesheet" type="text/css">
        <link rel="shortcut icon" href="<?php echo ($tpshop_config['shop_info_store_ico']); ?>"/>
        <link rel="stylesheet" href="/Template/pc/default2/Static/css/index.css" type="text/css"> 
        <script type="text/javascript" src="/Public/js/jquery-1.8.3.min.js"></script>
        <script src="/Public/js/jquery-1.10.2.min.js"></script>
        <script src="/Template/pc/default2/Static/js/slider.js"></script>
        <title><?php echo ($tpshop_config["shop_info_store_title"]); ?></title>
        <!--菜单样式-->
        <script src="/Public/js/jquery-1.10.2.min.js"></script>
        <script src="/Public/js/global.js"></script>
        <!--最顶部-->
  <!--  <div class="site-topbar">
        <div class="layout">
            <div class="t1-l">
                <ul class="t1-l-ul islogin">
                    <li class="t1font"> <a href="<?php echo U('Home/User/index');?>" class="logon userinfo"></a></li>
                    <li class="t1img"><a href="<?php echo U('Home/user/logout');?>" onclick="return confirm('确认退出吗  否则请取消？');"><b style="color:red;">安全退出</b></a></li>      
                    <li class="t1img">&nbsp;</li>

                </ul>
            </div>
            <div class="t1-r">
                <ul class="t1-r-ul islogin" style="display:none;">                   
                    <li class="t1font"><a href="<?php echo U('Home/User/order_list');?>">我的订单</a></li>
                    <li class="t1img">&nbsp;</li>
                    <li class="t1font"><a href="<?php echo U('Home/Cart/cart');?>">购物车</a></li>
                    <li class="t1img">&nbsp;</li>
                    <li class="t1font"><a href="<?php echo U('Home/User/withdrawals');?>">提现申请</a></li>
                    <li class="t1img">&nbsp;</li>   
                </ul>
            </div>
        </div>
    </div> -->

    <header>

        <div class="layout">

            <!--logo开始-->
            <div class="logo"><a href="/Home/User/index.html" title="<?php echo ($tpshop_config['shop_info_store_name']); ?>"><img src="<?php echo ($tpshop_config['shop_info_store_logo']); ?>" alt="<?php echo ($tpshop_config['shop_info_store_name']); ?>"></a></div>
            <!--logo结束-->

           
            <div class="qr-code">
                <img src="<?php echo ($tpshop_config['shop_info_store_weixin']); ?>" alt="二维码" />
<!--                <p>扫一扫</p>-->
            </div>
        </div>
    </header>
    <!-- 导航-开始-->


    <div class="navigation">
        <div class="layout">
            <div class="ongoods nav-box" id="navi">
                <ul>
                    <li><a href="/index.php?m=Home&c=User&a=index"><span><img src="/Template/pc/default2/Static/img/user/ico_1.png"></span>首页</a></li>
                    <?php
 $md5_key = md5("SELECT * FROM `__PREFIX__navigation` where is_show = 1 ORDER BY `sort` DESC"); $sql_result_v = S("sql_".$md5_key); if(empty($sql_result_v)) { $Model = new \Think\Model(); $result_name = $sql_result_v = $Model->query("SELECT * FROM `__PREFIX__navigation` where is_show = 1 ORDER BY `sort` DESC"); S("sql_".$md5_key,$sql_result_v,TPSHOP_CACHE_TIME); } foreach($sql_result_v as $k=>$v): ?><li class="page"><a href="<?php echo ($v[url]); ?>" <?php if($v[is_new] == 1): ?>target="_blank"<?php endif; ?><span><?php echo ($v[name]); ?></span></a></li><?php endforeach; ?>
                    <li><a href="/index.php?m=Home&c=User&a=logout" onclick="return confirm('确认退出吗  否则请取消？');"><span><img src="/Template/pc/default2/Static/img/user/ico_7.png"></span>安全退出</a></li>
                    <li style="color:#dfcc70; font-size:14px; margin-left:20px;"> 欢迎您：<?php echo ($user["account"]); ?>&nbsp;&nbsp;级别：<i><?php echo ($level["level_name"]); ?></i></li>
                </ul>
            </div>
        </div>
    </div>
    <!-- 导航-结束-->
    <script>
        $(function () {
            var active_li = '<?php echo ($active); ?>';
            if (active_li) {
                $('li').remove('curr-res');
                $('#' + active_li).addClass('curr-res');
            }

            var uname = getCookie('uname');
            if (uname == '') {
                $('.islogin').remove();
                $('.nologin').show();
            } else {
                $('.nologin').remove();
                $('.islogin').show();
                $('.userinfo').html(decodeURIComponent(uname));
            }
            get_cart_num();
        })



        function get_cart_num() {
            var cart_cn = getCookie('cn');
            if (cart_cn == '') {
                $.ajax({
                    type: "GET",
                    url: "/index.php?m=Home&c=Cart&a=header_cart_list", //+tab,
                    success: function (data) {
                        cart_cn = getCookie('cn');
                        $('#cart_quantity').html(cart_cn);
                    }
                });
            }
            $('#cart_quantity').html(cart_cn);
        }
        /**
         * 鼠标移动端到头部购物车上面 就ajax 加载
         */
    // 鼠标是否移动到了上方
        var header_cart_list_over = 0;
        $("#header_cart_list > .micart > .les").hover(function () {
            if (header_cart_list_over == 1)
                return false;
            header_cart_list_over = 1;
            $.ajax({
                type: "GET",
                url: "/index.php?m=Home&c=Cart&a=header_cart_list", //+tab,
                success: function (data) {
                    $("#header_cart_list > .micart > .ris").html(data);
                    get_cart_num();
                }
            });
        }).mouseout(function () {

            (typeof (t) == "undefined") || clearTimeout(t);
            t = setTimeout(function () {
                header_cart_list_over = 0; /// 标识鼠标已经离开
            }, 1000);
        });
    </script>
<!--导航 End  //-->
<div id="main">
    <!--左边菜单-->
    <div class="Side-box">
        <dl>
            <dt class="dtbox">基本信息</dt>
            <dd class="ddbox  Image-box">
                <ul>
                    <!--<li>呢称：<i><?php echo ($user["nickname"]); ?></i></li>-->
                    <li>编号：<i><?php echo ($user["account"]); ?></i></li>
                    <li>手机：<i><?php echo ($user["mobile"]); ?></i></li>
                    <!--<li>福利积分：<i><?php echo ($user["pay_points"]); ?></i></li>-->
                    <li>级别：<i><?php echo ($level["level_name"]); ?></i></li>
                    <?php if($user['is_activate'] == 0): ?><li>VIP：<i> <b>未激活</b>
                                <?php if($tpshop_config['reg_is_jh1_statu'] == 1): ?><a href="<?php echo U('Home/Zmd/kthuiyuan',array('user_id'=>$user['user_id']));?>" onClick="return confirm('确认激活？');"><b style="color:red;">点这里激活</b></a><?php endif; ?>
                            </i></li><?php endif; ?>
                    <li>服务中心：
                        <i>
                            <?php if($user["zmd"] == 1): ?>否<?php endif; ?>
                            <?php if($user["zmd"] == 2): ?>己申请待确认<?php endif; ?>
                            <?php if($user["zmd"] == 3): ?>是<?php endif; ?>
                        </i>
                    </li>
                    <li>推荐人数：<i><?php echo ($ztnum); ?> &nbsp;人</i></li>
                    <li>团队人数：<i><?php if($_SESSION['tuan_dui']== ''): ?>0 <?php else: echo (session('tuan_dui')); endif; ?> &nbsp;人</i></li>
                    <?php if($tpshop_config['zfuwl_is_u1'] == 1): ?><li><?php echo ($tpshop_config['zfuwl_u1']); ?>：<i><b>￥</b><?php echo ($user["user_money"]); ?></i></li><?php endif; ?>
                    <?php if($tpshop_config['zfuwl_is_u2'] == 1): ?><li><?php echo ($tpshop_config['zfuwl_u2']); ?>：<i><b>￥</b><?php echo ($user["zuce_money"]); ?></i></li><?php endif; ?>
                    <?php if($tpshop_config['zfuwl_is_u3'] == 1): ?><li><?php echo ($tpshop_config['zfuwl_u3']); ?>：<i><b>￥</b><?php echo ($user["pay_points"]); ?></i></li><?php endif; ?>
                    <?php if($tpshop_config['zfuwl_is_u4'] == 1): ?><li><?php echo ($tpshop_config['zfuwl_u4']); ?>：<i><b>￥</b><?php echo ($user["share_points"]); ?></i></li><?php endif; ?>
                    <?php if($tpshop_config['zfuwl_is_u5'] == 1): ?><li><?php echo ($tpshop_config['zfuwl_u5']); ?>：<i><b>￥</b><?php echo ($user["frozen_money"]); ?></i></li><?php endif; ?>
                    <!--<?php if($tpshop_config['zfuwl_is_u6'] == 1): ?><li><?php echo ($tpshop_config['zfuwl_u6']); ?>：<i><?php echo ($user["total_amount"]); ?></i><b>￥</b></li><?php endif; ?>-->
                    <?php if($user["is_user"] == 0): ?><li>回填帐户：<i><?php echo ($user["kdhl_money"]); ?></i><b>￥</b></li><?php endif; ?>

                </ul>
            </dd>
        </dl>
        <!--快捷导航  start//-->
        <!--<dl>
    <dt class="dtbox">快捷导航</dt>
    <dd class="ddbox Quick-box">
        <ul>
            <li><a href="/Home/Bank/user_money_zz.html"><i><img src="/Template/pc/default2/Static/img/user/index_1.jpg" alt="交易大厅"></i>交易大厅</a></li>
            <li><a href="/Home/Zmd/team.html"><i><img src="/Template/pc/default2/Static/img/user/index_5.jpg" alt="团队情况"  /></i>团队情况</a></li>
            <li><a href="/Home/Bank/money_day_log.html"><i><img src="/Template/pc/default2/Static/img/user/index_7.jpg" alt="奖金明细"></i>奖金明细</a></li>
            <li><a href="/Home/Article/sendemail.html"><i><img src="/Template/pc/default2/Static/img/user/index_8.jpg" alt="留言交流"></i>留言交流</a></li>
            <?php if($level_tixian == 1 ): ?><li><a href="/Home/Bank/withdrawals.html"><i><img src="/Template/pc/default2/Static/img/user/index_3.jpg" alt="奖金提现"  /></i>奖金提现</a></li><?php endif; ?>
            
            <li><a href="/Home/User/recharge.html"><i><img src="/Template/pc/default2/Static/img/user/index_2.jpg"  alt="货币充值" /></i>货币充值</a></li>
        </ul>
    </dd>
</dl>  --><!-- 引入快捷导航 //-->
        <!-- 快捷导航 End //-->
    </div>
    <!--左边菜单END-->
    <div class="mainfr-box">
        <div class="mainfr-top">
            <div class="banner-box">
                <div id="slideBox" class="slideBox">
                    <div class="bd">
                        <ul>
                            <li><img src="<?php echo ($tpshop_config["shop_info_user_lb"]); ?>" style="width:730px;height: 270px;"></li>
                            <!--<li><a href="#" target="_blank"><img src="/Template/pc/default2/Static/img/user/banner1.jpg"></a></li>-->
                        </ul>
                    </div>
                </div>
            </div>
            <div class="news-box">
                <dl>
                    <dt class="dtbox"><a href="/Home/Article/announ.html">更多</a>公司公告</dt>
                    <dd class="ddbox news-list">
                        <ul>
                            <?php
 $md5_key = md5("select * from `__PREFIX__article` where cat_id = 2"); $sql_result_v = S("sql_".$md5_key); if(empty($sql_result_v)) { $Model = new \Think\Model(); $result_name = $sql_result_v = $Model->query("select * from `__PREFIX__article` where cat_id = 2"); S("sql_".$md5_key,$sql_result_v,TPSHOP_CACHE_TIME); } foreach($sql_result_v as $k=>$v): ?><li>
                                    <a href="/Home/Article/detail/article_id/<?php echo ($v['article_id']); ?>"><?php echo ($v['title']); ?></a>&nbsp;
                                    <font style="float:right;">[<?php echo (date("Y-m-d H:i:s",$v['add_time'])); ?>]</font>
                                </li><?php endforeach; ?>
                        </ul>
                    </dd>
                </dl>
            </div>
        </div>
        <div class="clr"></div>

        <div style="height:20px; clear:both;"></div>
        <script type="text/javascript" src="/Public/welcome/jquery.js"></script>
        <script type="text/javascript" src="/Public/welcome/jsapi.js"></script>
        <script type="text/javascript" src="/Public/welcome/format+zh_CN,default,corechart.I.js"></script>
        <script type="text/javascript" src="/Public/welcome/jquery.gvChart-1.0.1.min.js"></script>
        <script type="text/javascript" src="/Public/welcome/jquery.ba-resize.min.js"></script>
        <style>
            .mainbox{padding:0px;position:relative;}
            .mainleft{padding-right:268px;}
            .leftinfo{border:#d3dbde solid 1px; height:308px;}
            .mainright{width:298px;position:absolute;top:0px; right:0px;}
            .dflist{border:#d3dbde solid 1px; width:258px; height:308px; float:right;}
            .dflist1{border:#d3dbde solid 1px; width:258px; height:238px; float:right; margin-top:8px;}
            .listtitle{height:36px; line-height:36px; border-bottom:solid 1px #d3dbde; text-indent:14px; font-weight:bold; font-size:14px;}
            .more1{float:right; font-weight:normal;color:#000; padding-right:17px;}
            .maintj{text-align:center;background: #fff;}
            .newlist{padding-left:14px; padding-top:15px;}
            .newlist li{line-height:25px; text-indent:11px;}
            .newlist i{width:80px; display:block; float:left; font-style:normal;}
            .newlist b{font-weight:normal; color:#7b7b7b; padding-left:10px;}
            .leftinfos{height:238px;margin-top:8px;}
            .infoleft{border:#d3dbde solid 1px; float:left;height:238px;}
            .inforight{border:#d3dbde solid 1px; float:right;height:238px; }
            .tooli{padding:30px 20px;}
            .tooli li{float:left;padding-left:15px; padding-right:15px;margin-bottom:20px;}
            .tooli li span{text-align:center;}
            .tooli li p{line-height:35px; text-align:center;}
        </style>

        <script type="text/javascript">
            gvChartInit();
            jQuery(document).ready(function () {
                jQuery('#myTable5').gvChart({
                    chartType: 'PieChart',
                    gvSettings: {
                        vAxis: {title: 'No of players'},
                        hAxis: {title: 'Month'},
                        width: 650,
                        height: 262
                    }
                });
            });
        </script>
         <div class="mainbox">
            <div class="mainleft">
                <div class="leftinfo">
                    <div class="listtitle"><a href="#" class="more1"></a>积分图表</div>
                    <div class="maintj">
                        <table id='myTable5'>
                            <thead>
                                <tr>
                                    <th></th>
                            <?php if($tpshop_config['zfuwl_is_m1'] == 1): ?><th><?php echo ($tpshop_config['zfuwl_m1']); ?></th><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m2'] == 1): ?><th><?php echo ($tpshop_config['zfuwl_m2']); ?></th><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m3'] == 1): ?><th><?php echo ($tpshop_config['zfuwl_m3']); ?></th><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m4'] == 1): ?><th><?php echo ($tpshop_config['zfuwl_m4']); ?></th><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m5'] == 1): ?><th><?php echo ($tpshop_config['zfuwl_m5']); ?></th><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m6'] == 1): ?><th><?php echo ($tpshop_config['zfuwl_m6']); ?></th><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m7'] == 1): ?><th><?php echo ($tpshop_config['zfuwl_m7']); ?></th><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m8'] == 1): ?><th><?php echo ($tpshop_config['zfuwl_m8']); ?></th><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m9'] == 1): ?><th><?php echo ($tpshop_config['zfuwl_m9']); ?></th><?php endif; ?>
                            </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <th>2010</th>
                            <?php if($tpshop_config['zfuwl_is_m1'] == 1): ?><td><?php if($total['money1'] == ''): ?>0<?php else: echo ($total['money1']); endif; ?></td><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m2'] == 1): ?><td><?php if($total['money2'] == ''): ?>0<?php else: echo ($total['money2']); endif; ?></td><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m3'] == 1): ?><td><?php if($total['money3'] == ''): ?>0<?php else: echo ($total['money3']); endif; ?></td><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m4'] == 1): ?><td><?php if($total['money4'] == ''): ?>0<?php else: echo ($total['money4']); endif; ?></td><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m5'] == 1): ?><td><?php if($total['money5'] == ''): ?>0<?php else: echo ($total['money5']); endif; ?></td><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m6'] == 1): ?><td><?php if($total['money6'] == ''): ?>0<?php else: echo ($total['money6']); endif; ?></td><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m7'] == 1): ?><td><?php if($total['money7'] == ''): ?>0<?php else: echo ($total['money7']); endif; ?></td><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m8'] == 1): ?><td><?php if($total['money8'] == ''): ?>0<?php else: echo ($total['money8']); endif; ?></td><?php endif; ?>
                            <?php if($tpshop_config['zfuwl_is_m9'] == 1): ?><td><?php if($total['money9'] == ''): ?>0<?php else: echo ($total['money9']); endif; ?></td><?php endif; ?>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!--leftinfo end-->
            </div>
            <!--mainleft end-->
            <div class="mainright">
                <div class="dflist">
                    <div class="listtitle"><a href="Home/Article/index.html" class="more1">更多</a>新闻中心</div>
                    <ul class="newlist">
                        <?php
 $md5_key = md5("select * from `__PREFIX__article`  where cat_id = 1 and is_open = 1 order by article_id desc limit 10"); $sql_result_v = S("sql_".$md5_key); if(empty($sql_result_v)) { $Model = new \Think\Model(); $result_name = $sql_result_v = $Model->query("select * from `__PREFIX__article`  where cat_id = 1 and is_open = 1 order by article_id desc limit 10"); S("sql_".$md5_key,$sql_result_v,TPSHOP_CACHE_TIME); } foreach($sql_result_v as $k=>$v): ?><li><a href="<?php echo U('Home/Article/detail',array('article_id'=>$v[article_id]));?>"><?php echo (getSubstr($v['title'],0,10)); ?></a> &nbsp;<?php echo (date('Y-m-d',$v["publish_time"])); ?></li><?php endforeach; ?>
                    </ul>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            setWidth();
            $(window).resize(function () {
                setWidth();
            });
            function setWidth() {
                var width = ($('.leftinfos').width() - 12) / 2;
                $('.infoleft,.inforight').width(width);
            }
        </script>
        <!--        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!--->

    </div>
    <!--    </div>-->
    <div class="clr"></div>
    <!--footer start //-->
    <div class="footer">
    <div class="helpful layout"></div>
     <div class="keep-on-record">
        <p>
        Copyright © 2017 净易生  版权所有 
        </p>
     </div>
 </div>
 

    <!--footer  end //-->
</body>
</html>

<!--在线客服  start//-->
<!----><!-- 引入在线客服 //-->
<!-- 在线客服 End //-->